<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文章列表</title>
    <link rel="stylesheet" href="/bigevent/assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="/bigevent/assets/css/article.css" />
  </head>
  <body>
    <div class="layui-card article">
      <div class="layui-card-header">文章列表</div>
      <div class="layui-card-body">
        <form class="layui-form" action="" id="filterForm">
          <!-- <div class="layui-form-item layui-inline cateSlt">
            <select name="city" lay-verify="required">
              <option value="">所有分类</option>
              <option value="已发布">已发布</option>
              <option value="草稿">草稿</option>
            </select>
          </div> -->
          <div class="layui-form-item layui-inline">
            <select name="state">
              <option value="">所有状态</option>
              <option value="已发布">已发布</option>
              <option value="草稿">草稿</option>
            </select>
          </div>

          <div class="layui-form-item layui-inline">
            <button class="layui-btn" lay-submit lay-filter="formDemo">
              筛选
            </button>
          </div>
        </form>
        <table class="layui-table">
          <colgroup>
            <col width="10%" />
            <col width="38%" />
            <col width="10%" />
            <col width="20%" />
            <col width="8%" />
            <col />
          </colgroup>
          <thead>
            <tr>
              <th>ID</th>
              <th>文章标题</th>
              <th>所属分类</th>
              <th>发布时间</th>
              <th>状态</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody></tbody>
        </table>
        <div id="page"></div>
      </div>
    </div>
    <script type="text/html" id="listAtc">
      {{each data v}}
      <tr data-id="{{v.Id}}">
        <td>{{v.Id}}</td>
        <td>{{v.title}}</td>
        <td>{{v.cate_name}}</td>
        <td>{{v.pub_date}}</td>
        <td>{{v.state}}</td>
        <td>
          <button type="button" class="layui-btn layui-btn-xs editBtn">
            编辑
          </button>
          <button
            type="button"
            class="layui-btn layui-btn-xs layui-btn-danger delete"
          >
            删除
          </button>
        </td>
      </tr>
      {{/each}}
    </script>
    <script type="text/html" id="cateSltAtc">
      <div class="layui-form-item layui-inline cateSlt">
        <select name="cate_id">
          <option value="">所有分类</option>
          {{each data v}}
          <option value="{{v.Id}}">{{v.name}}</option>
          {{/each}}
        </select>
      </div>
    </script>
    <script src="/bigevent/assets/lib/layui/layui.all.js"></script>
    <script src="/bigevent/assets/lib/jquery.js"></script>
    <script src="/bigevent/assets/lib/template-web.js"></script>
    <script src="/bigevent/assets/js/common.js"></script>
    <script src="/bigevent/assets/js/article/article.js"></script>
  </body>
</html>
